package org.budo.filestore.qiniu;

import org.budo.filestore.impl.DefaultDownloadRequest;

import lombok.Getter;
import lombok.Setter;

/**
 * @author lmw
 */
@Getter
@Setter
public class QiniuDownloadRequest extends DefaultDownloadRequest {
    private static final long serialVersionUID = -6965947796311899418L;

    private String downloadDomain;

    private Integer antiLeechDuration;

    public QiniuDownloadRequest() {}

    public QiniuDownloadRequest(String downloadDomain) {
        this.setDownloadDomain(downloadDomain);
    }

    public QiniuDownloadRequest(Integer antiLeechDuration) {
        this.setAntiLeechDuration(antiLeechDuration);
    }

    public QiniuDownloadRequest(String downloadDomain, Integer antiLeechDuration) {
        this.setDownloadDomain(downloadDomain);
        this.setAntiLeechDuration(antiLeechDuration);
    }
}